package com.skynet.supervision.controller;

import com.skynet.supervision.common.Result;
import com.skynet.supervision.mq.Producer.Producer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @auther joker
 * @createDate 2023/11/17 16:35
 */
@RestController
@RequestMapping(value = "/test")
public class TestController {

    @Autowired
    private Producer producer;

    @RequestMapping("/pro")
    public Result pro(){
        this.producer.async();
        return Result.success();
    }


}
